package com.example.demo.web.api

import com.example.demo.data.Ingredient
import org.springframework.hateoas.RepresentationModel

data class IngredientResource(
        val name: String,
        val type: Ingredient.Type
) : RepresentationModel<IngredientResource>() {
    constructor(ingredient: Ingredient) : this(ingredient.name, ingredient.type)
}